home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v9n03.arc / INITSYS.BAT < prev    next >
DOS Batch File  |  1990-01-12  |  4KB  |  77 lines

  1. ECHO OFF
  2. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  3. ECHO ║ INITsys will initially create the .LOG files on the CHECK or CHECK-MT   ║
  4. ECHO ║ diskette for the current disk.                                          ║
  5. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  6. ECHO ║ If FASTrun was executed first, directory ))PCITK.TMP will be used to    ║
  7. ECHO ║ load all programs and batch files, otherwise they will be loaded from   ║
  8. ECHO ║ the CHECK diskette.                                                     ║
  9. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  10. ECHO ║    PCDATA TOOLKIT 1.0 Copyright (C) 1990 Ziff Communications Co.        ║
  11. ECHO ║                    PC Magazine ■ Wolfgang Stiller                       ║
  12. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  13. IF "%1"=="" goto Help
  14. IF %1==? goto Help
  15. CD %1\
  16. IF NOT EXIST %1DELFILES.BAT GOTO  MissingMT
  17. IF "%PATH%"=="\))PCITK.TMP" GOTO Start
  18. IF NOT EXIST %1INITDIR.BAT GOTO  MissingADS
  19. IF NOT EXIST %1XALL.COM GOTO  MissingADS
  20. IF NOT EXIST %1CHKFILEC.COM GOTO  MissingADS
  21. GOTO Start0
  22. :Help
  23. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  24. ECHO ║ Syntax is   INITSYS  a:                                                 ║
  25. ECHO ║     where "a:" is the drive containing a CHECK or CHECK-MT diskette.    ║
  26. ECHO ║     The current disk must be the one which is to be checked.            ║
  27. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  28. ECHO ║ INITsys will check all files in every directory on the current disk.    ║
  29. ECHO ║ The check information will be written into *.LOG files in corresponding ║
  30. ECHO ║ directories on the CHECK or CHECK-MT diskette. If FASTrun has been      ║
  31. ECHO ║ executed, all needed programs will be loaded from ))PCITK.TMP, otherwise║
  32. ECHO ║ all programs and batch files will be loaded from the CHECK diskette.    ║
  33. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  34. GOTO End
  35. :MissingMT
  36. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  37. ECHO ║ You MUST have a valid CHECK or CHECK-MT diskette in the drive which     ║
  38. ECHO ║ you specified with the %1 parameter. The file DELFILES.BAT is missing.  ║
  39. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  40. GOTO End
  41. :MissingADS
  42. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  43. ECHO ║ You MUST have a valid CHECK or CHECK-MT diskette in the drive which     ║
  44. ECHO ║ you specified with the %1 parameter.                                    ║
  45. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  46. ECHO ║ You are missing INITDIR.BAT, CHKFILEC.COM or XALL.COM.                  ║
  47. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  48. GOTO End
  49. :BadXall
  50. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  51. ECHO ║ Xall has failed.  Please check the prior error messages. Most likely    ║
  52. ECHO ║ your COMSPEC environment variable does not point to a good COMMAND.COM. ║
  53. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  54. GOTO End
  55. :   Enter here if we are NOT executing on a "FASTrun" system
  56. :Start0
  57. PATH=%1\
  58. :   Enter here if "FASTrun" has set PATH and COMSPEC
  59. :Start
  60. CD \
  61. Xall INITDIR %1
  62. IF ERRORLEVEL 32 GOTO BadXall
  63. ECHO ╔════════════════════════════════════════════════════════════════╗
  64. ECHO ║          * * *  Initialization is complete   * * *             ║
  65. ECHO ╟────────────────────────────────────────────────────────────────╢
  66. ECHO ║ To continue, make sure you have a bootable disk in drive %1.   ║
  67. ECHO ╚════════════════════════════════════════════════════════════════╝
  68. CD %1\
  69. IF NOT "%PATH%"=="\))PCITK.TMP" GOTO End
  70. ECHO  Now removing copied files from disk and restoring path.
  71. CD \))PCITK.TMP
  72. SET COMSPEC=%1\COMMAND.COM
  73. PATH=%1\
  74. CD %1\
  75. %1DELFILES
  76. :End
  77.